package com.db;

public class IntegerType extends DBType{
   
	
	public static String getDefaultComment(String name) {
		return "Integer "+name+ " = null";
	}
	
	public static String getComment(String name, String value) {
		if(value==null || value.trim()=="") {
			value = "null";
			return "Integer "+name+ " = null";
		}
		return "Integer "+name+ " = Integer.parseInt("+value+")";
	}
	
	
	
	public static String getSetComment(String name, String value) {
		if(value==null || value.trim()=="") {		
			return name+ " = null";
		}

		return name+ " = "+ value;
	}
	
	
	public static String getSetFieldValueComment(String name, String value) {
		if(value==null || value.trim()=="") {		
			return name+ " = null";
		}

		return name+ " = Integer.parseInt("+ value +")";
	}
	
}
